function DefinitionView(param) {
	var self = Ti.UI.createWindow({
		title : param.detailTitle,
		//title:_args.title,
		backgroundColor:'#fff'
	});
	
	//knowledge area is the name of the process area that was clicked
	var knowledgeArea = param.knowledge;
	//alert(knowledgeArea);
	knowledgeArea = knowledgeArea.replace(/\s+/g,"");
	//alert(knowledgeArea);
	knowledgeArea[0] = knowledgeArea[0].toLowerCase();
		//alert(knowledgeArea);

	var definitionObject = {
		
	"PlanScheduleManagement" : "Plan Schedule Management involves the process of establishing the policies, procedures, and documentation for planning, developing, managing, executing, and controlling the project schedule.  This process provides guidance and direction on how the project schedule will be managed throughout the project. \n \nThe schedule management plan is a major input into the Develop Project Management Plan.  It  defines how schedule contingencies will be reported and accessed.  Based on the needs of the plan it may be formal or informal, highly detailed or broadly framed and include the appropriate control thresholds.  This plan may be updated to reflect changes in the way the schedule is managed.",
	"DefineActivities" : "Define Activities process identifies and documents the specific actions to be performed to produce the project deliverables.  This process allows the breakdown of work packages into activities that provides basis for estimating, scheduling, executing, monitoring, and controlling the project work.",
	"SequenceActivities" : "Sequence Activities identifies and documents relationships among the project activities.  It defines the logical sequence of work to obtain the greatest efficiency given all project constraints.",
	"EstimateActivityResources" :"This process is used to estimate the type and quantity of materials, human resources, equipment, or suppliers required to perform each project activity.  The process provides the benefit of identifying the type, quantity, and characteristics of resources required to complete the activity and provides for a more accurate cost and duration estimates.",
	"EstimateActivityDuration" : "This process involves estimation of the number of work periods needed to complete individual activitieswith estimated resources. This activity provides the amount of time it will take to complete each activity.",
	"DevelopSchedule": "This process involves analyzing activity sequences, durations, resource requirements, and schedule constraints to create the project schedule model. This allows for generating of a schedule model with planned dates for completing project activities.",
	"ControlSchedule": "This is the process of monitoring the status of project activities to update project progress and manage changes to the schedule baseline. It provides a means of recognizing deviation from the plan and taking corrective and preventive actions to minimize risks."	
	};
	
	//the label selects the definition for the knowledge area selected
	var lbl = Ti.UI.createLabel({
		text: definitionObject[knowledgeArea],
		height:'auto',
		width:'auto',
		color:'#000',
		textAlign: Ti.UI.TEXT_ALIGNMENT_JUSTIFIED
	});
	self.add(lbl);

	self.addEventListener('itemSelectedD', function(e) {
		lbl.text = e.name+': '+e.detail;
	});

	return self;
};

module.exports = DefinitionView;
